package com.serverTechnology.teamsGroups.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 字典
 * </p>
 *
 * @author 王烁
 * @since 2024-07-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SYS_DICT")
@ApiModel(value="SysDict对象", description="字典")
public class SysDict implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "字典id")
    @TableId(value = "DICT_ID", type = IdType.NONE)
    private Long dictId;

    @ApiModelProperty(value = "字典类型的id")
    private Long dictTypeId;

    @ApiModelProperty(value = "字典编码")
    private String dictCode;

    @ApiModelProperty(value = "字典名称")
    private String dictName;

    @ApiModelProperty(value = "字典名称首字母")
    private String dictNamePinyin;

    @ApiModelProperty(value = "字典编码")
    private String dictEncode;

    @ApiModelProperty(value = "字典简称")
    private String dictShortName;

    @ApiModelProperty(value = "字典简称的编码")
    private String dictShortCode;

    @ApiModelProperty(value = "上级字典的id(如果没有上级字典id，则为-1)")
    private Long dictParentId;

    @ApiModelProperty(value = "父id集合")
    private String dictPids;

    @ApiModelProperty(value = "状态：(1-启用,2-禁用),参考 StatusEnum")
    private BigDecimal statusFlag;

    @ApiModelProperty(value = "排序，带小数点")
    private BigDecimal dictSort;

    @ApiModelProperty(value = "乐观锁")
    private Long versionFlag;

    @ApiModelProperty(value = "删除标记：Y-已删除，N-未删除")
    private String delFlag;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "创建人")
    private Long createUser;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "更新人")
    private Long updateUser;

    @ApiModelProperty(value = "租户号")
    private Long tenantId;


}
